/* Class18 - Decompiled by JODE
 * Visit http://jode.sourceforge.net
 */
public class Class18 {
    public static JString aJString_330;
    public static JString[] aJStringArray332 = new JString[100];
    public static int anInt339 = 0;
    public static int anInt340;
    public static int[] anIntArray341;
    public static int anInt345;
    public static int anInt351;
    public static int anInt361;
    public static JString aJString_365 = Class37_Sub2.method332((byte) 118,
            "Attack");
    public static int anInt373;
    public static int anInt384;
    public static int anInt388;
    public static int anInt392;
    public static int anInt412;
    public static int anInt437;
    public static int anInt438;
    public static JString aJString_440;
    public static int anInt446;
    public static JString aJString_447;
    public static JString aJString_454;
    public static int anInt459;

    static {
        anInt340 = 0;
        aJString_330 = aJString_365;

        aJString_447 = (Class37_Sub2.method332((byte) 120,
                "Sie k-Onnen sich selbst nicht auf Ihre Freunde)2Liste setzen(Q"));
        aJString_454 = Class37_Sub2.method332((byte) 120,
                "No reply from loginserver)3");
        aJString_440 = aJString_454;
    }

    public Object[] anObjectArray318;
    public int anInt319;
    public int anInt320;
    public boolean aBoolean321;
    public int anInt322;
    public int anInt323;
    public int anInt324 = 0;
    public int anInt325;
    public int anInt326;
    public Object[] anObjectArray327;
    public Object[] anObjectArray328;
    public int anInt329;
    public int[] anIntArray331;
    public Object[] anObjectArray333;
    public int anInt334;
    public int anInt335;
    public boolean aBoolean336;
    public int anInt337 = 1;
    public int anInt338;
    public int[] anIntArray342;
    public int anInt343;
    public int anInt344;
    public Object[] anObjectArray346;
    public Object[] anObjectArray347;
    public int anInt348;
    public Object[] anObjectArray349;
    public int anInt350;
    public Object[] anObjectArray352;
    public int anInt353;
    public int anInt354;
    public Object[] anObjectArray355;
    public int[] anIntArray356;
    public Object[] anObjectArray357;
    public Object[] anObjectArray358;
    public int anInt359;
    public JString aJString_360;
    public Object[] anObjectArray362;
    public Object[] anObjectArray363;
    public boolean aBoolean364;
    public Object[] anObjectArray366;
    public int anInt367;
    public int anInt368;
    public int anInt369;
    public int[] anIntArray370;
    public int anInt371;
    public boolean aBoolean372;
    public boolean aBoolean374;
    public int[] anIntArray375;
    public int anInt376;
    public JString aJString_377;
    public int anInt378;
    public int anInt379;
    public int anInt380;
    public int anInt381;
    public int anInt382;
    public JString[] aJStringArray383;
    public int anInt385;
    public Object[] anObjectArray386;
    public int anInt387;
    public boolean aBoolean389;
    public int anInt390;
    public JString aJString_391;
    public Object[] anObjectArray393;
    public int anInt394;
    public int anInt395;
    public int anInt396;
    public int anInt397;
    public int anInt398;
    public int anInt399;
    public int anInt400;
    public boolean aBoolean401;
    public int anInt402;
    public boolean aBoolean403;
    public int anInt404;
    public int anInt405;
    public int anInt406;
    public Object[] anObjectArray407;
    public int anInt408;
    public Object[] anObjectArray409;
    public int anInt410;
    public JString aJString_411;
    public Class18 aClass18_413;
    public int anInt414;
    public int anInt415;
    public Object[] anObjectArray416;
    public int anInt417;
    public Object[] anObjectArray418;
    public int anInt419;
    public int anInt420;
    public JString aJString_421;
    public int[] anIntArray422;
    public int anInt423;
    public int[] anIntArray424;
    public Object[] anObjectArray425;
    public int anInt426;
    public boolean aBoolean427;
    public int anInt428;
    public Object[] anObjectArray429;
    public Object[] anObjectArray430;
    public int anInt431;
    public int anInt432;
    public Object[] anObjectArray433;
    public int[][] anIntArrayArray434;
    public int anInt435;
    public JString aJString_436;
    public boolean aBoolean439;
    public int anInt441;
    public int anInt442;
    public int anInt443;
    public int[] anIntArray444;
    public boolean aBoolean445;
    public int[] anIntArray448;
    public int anInt449;
    public Class18[] aClass18Array450;
    public int[] anIntArray451;
    public boolean aBoolean452;
    public JString[] aJStringArray453;
    public Object[] anObjectArray455;
    public Object[] anObjectArray456;
    public int anInt457;
    public int anInt458;

    public Class18() {
        anInt319 = 0;
        aBoolean336 = false;
        aBoolean364 = false;
        aBoolean372 = false;
        anInt368 = 0;
        anInt371 = 0;
        anInt343 = -1;
        anInt378 = 0;
        anInt329 = 0;
        anInt353 = 0;
        anInt379 = 0;
        anInt402 = -1;
        anInt367 = -1;
        anInt398 = 0;
        anInt387 = 100;
        anInt334 = -1;
        aBoolean321 = false;
        anInt395 = 0;
        aJString_391 = Class39.aJString_873;
        aClass18_413 = null;
        anInt380 = 0;
        anInt400 = -1;
        anInt385 = -1;
        aJString_377 = Class39.aJString_873;
        anInt326 = 0;
        anInt423 = 0;
        anInt396 = 0;
        anInt394 = -1;
        anInt348 = 0;
        anInt323 = 0;
        aBoolean427 = false;
        anInt325 = 1;
        anInt369 = -1;
        anInt390 = -1;
        anInt359 = 0;
        anInt419 = -1;
        anInt344 = 0;
        aJString_421 = Class37_Sub9_Sub5.aJString_3005;
        anInt320 = 0;
        anInt322 = 0;
        anInt382 = 0;
        anInt415 = 0;
        anInt405 = 0;
        aJString_436 = Class39.aJString_873;
        aBoolean403 = false;
        anInt350 = 0;
        anInt420 = 0;
        anInt338 = -1;
        anInt441 = 0;
        anInt404 = 0;
        anInt442 = 0;
        aBoolean445 = false;
        anInt406 = 0;
        anInt399 = 0;
        anInt432 = 0;
        anInt410 = 0;
        anInt428 = 0;
        anInt449 = 0;
        anInt431 = 0;
        anInt408 = 1;
        anInt376 = 0;
        anInt435 = -1;
        aJString_360 = Class39.aJString_873;
        anInt335 = 0;
        anInt397 = 0;
        anInt414 = -1;
        aBoolean439 = false;
        aBoolean374 = false;
        anInt426 = 0;
        anInt417 = 0;
        anInt458 = -1;
        aBoolean452 = false;
        aJString_411 = Class39.aJString_873;
        anInt443 = 0;
        anInt381 = 0;
        anInt457 = -1;
    }

    public static void method189(int i) {
        aJString_330 = null;
        anIntArray341 = null;
        aJString_447 = null;
        aJStringArray332 = null;

        if (i > -88) {
            method191((byte) 62, 108, 38);
        }

        aJString_365 = null;
        aJString_454 = null;
        aJString_440 = null;
    }

    public Class37_Sub4_Sub7_Sub6 method190(int i, int i_0_,
        Class37_Sub4_Sub12 class37_sub4_sub12, boolean bool, Class29 class29) {
        try {
            if (i <= 118) {
                method201(true, null);
            }

            Class27.aBoolean672 = false;
            anInt446++;

            int i_1_;
            int i_2_;

            if (!bool) {
                i_1_ = anInt408;
                i_2_ = anInt369;
            } else {
                i_1_ = anInt325;
                i_2_ = anInt457;
            }

            if ((i_1_ ^ 0xffffffff) == -1) {
                return null;
            }

            if ((i_1_ == 1) && ((i_2_ ^ 0xffffffff) == 0)) {
                return null;
            }

            if (i_1_ == 2) {
                Class37_Sub4_Sub15 class37_sub4_sub15 = Class37_Sub9_Sub34.method912(29,
                        i_2_).method719((byte) 41);

                if (class37_sub4_sub15 != null) {
                    i_2_ = class37_sub4_sub15.anInt2842;
                }
            }

            Class37_Sub4_Sub7_Sub6 class37_sub4_sub7_sub6 = ((Class37_Sub4_Sub7_Sub6) Class17.aClass65_312.method1181((byte) 22,
                    (long) ((i_1_ << -1123863600) + i_2_)));

            if (class37_sub4_sub7_sub6 == null) {
                if (i_1_ == 1) {
                    Class37_Sub4_Sub7_Sub4 class37_sub4_sub7_sub4 = (Class37_Sub4_Sub7_Sub4.method529(Class37_Sub4_Sub7_Sub7.aClass15_3837,
                            i_2_, 0));

                    if (class37_sub4_sub7_sub4 == null) {
                        Class27.aBoolean672 = true;

                        return null;
                    }

                    class37_sub4_sub7_sub6 = class37_sub4_sub7_sub4.method518(64,
                            768, -50, -10, -50, true, true);
                }

                if ((i_1_ ^ 0xffffffff) == -3) {
                    Class37_Sub4_Sub7_Sub4 class37_sub4_sub7_sub4 = Class37_Sub9_Sub34.method912(-93,
                            i_2_).method720(-1);

                    if (class37_sub4_sub7_sub4 == null) {
                        Class27.aBoolean672 = true;

                        return null;
                    }

                    class37_sub4_sub7_sub6 = class37_sub4_sub7_sub4.method518(64,
                            768, -50, -10, -50, true, true);
                }

                if ((i_1_ ^ 0xffffffff) == -4) {
                    if (class29 == null) {
                        return null;
                    }

                    Class37_Sub4_Sub7_Sub4 class37_sub4_sub7_sub4 = class29.method262(false);

                    if (class37_sub4_sub7_sub4 == null) {
                        Class27.aBoolean672 = true;

                        return null;
                    }

                    class37_sub4_sub7_sub6 = class37_sub4_sub7_sub4.method518(64,
                            768, -50, -10, -50, true, true);
                }

                if ((i_1_ ^ 0xffffffff) == -5) {
                    ItemDef itemdef = Class46.method1108(i_2_,
                            (byte) 85);

                    class37_sub4_sub7_sub6 = itemdef.method449((byte) -113,
                            10);

                    if (class37_sub4_sub7_sub6 == null) {
                        Class27.aBoolean672 = true;

                        return null;
                    }
                }

                Class17.aClass65_312.method1179((long) (i_2_ +
                    (i_1_ << 359839792)), -4, class37_sub4_sub7_sub6);
            }

            if (class37_sub4_sub12 != null) {
                class37_sub4_sub7_sub6 = class37_sub4_sub12.method702(i_0_,
                        class37_sub4_sub7_sub6, 44);
            }

            return class37_sub4_sub7_sub6;
        } catch (RuntimeException runtimeexception) {
            throw Class37_Sub4_Sub7_Sub3.method516(runtimeexception,
                ("ef.C(" + i + ',' + i_0_ + ',' +
                ((class37_sub4_sub12 != null) ? "{...}" : "null") + ',' + bool +
                ',' + ((class29 != null) ? "{...}" : "null") + ')'));
        }
    }

    public static int method191(byte i, int i_3_, int i_4_) {
        anInt351++;

        if (i <= 67) {
            method189(22);
        }

        if (i_3_ == -1) {
            return 12345678;
        }

        i_4_ = (i_4_ * (i_3_ & 0x7f)) / 128;

        if (i_4_ < 2) {
            i_4_ = 2;
        } else if ((i_4_ ^ 0xffffffff) < -127) {
            i_4_ = 126;
        }

        return (0xff80 & i_3_) - -i_4_;
    }

    public static void method192(int i, int i_5_, int i_6_, int i_7_, int i_8_) {
        for (Class37_Sub7 class37_sub7 = (Class37_Sub7) Class37_Sub4.aClass58_1857.method1155(
                    0); class37_sub7 != null;
                class37_sub7 = (Class37_Sub7) Class37_Sub4.aClass58_1857.method1162(
                        (byte) 54)) {
            if (((class37_sub7.anInt1910 ^ 0xffffffff) != 0) ||
                    (class37_sub7.anIntArray1895 != null)) {
                int i_9_ = 0;

                if (class37_sub7.anInt1913 >= i) {
                    if ((class37_sub7.anInt1892 ^ 0xffffffff) < (i ^
                            0xffffffff)) {
                        i_9_ += (-i + class37_sub7.anInt1892);
                    }
                } else {
                    i_9_ += (i + -class37_sub7.anInt1913);
                }

                if (class37_sub7.anInt1907 >= i_8_) {
                    if ((class37_sub7.anInt1914 ^ 0xffffffff) < (i_8_ ^
                            0xffffffff)) {
                        i_9_ += (class37_sub7.anInt1914 - i_8_);
                    }
                } else {
                    i_9_ += (i_8_ - class37_sub7.anInt1907);
                }

                if (((class37_sub7.anInt1905 ^ 0xffffffff) > ((i_9_ - 64) ^
                        0xffffffff)) ||
                        ((Class43.anInt957 ^ 0xffffffff) == -1) ||
                        (class37_sub7.anInt1903 != i_5_)) {
                    if (class37_sub7.aClass37_Sub3_Sub4_1896 != null) {
                        Class1.aClass37_Sub3_Sub2_59.method353(class37_sub7.aClass37_Sub3_Sub4_1896);
                        class37_sub7.aClass37_Sub3_Sub4_1896 = null;
                    }

                    if (class37_sub7.aClass37_Sub3_Sub4_1917 != null) {
                        Class1.aClass37_Sub3_Sub2_59.method353(class37_sub7.aClass37_Sub3_Sub4_1917);
                        class37_sub7.aClass37_Sub3_Sub4_1917 = null;
                    }
                } else {
                    i_9_ -= 64;

                    if (i_9_ < 0) {
                        i_9_ = 0;
                    }

                    int i_10_ = ((Class43.anInt957 * (class37_sub7.anInt1905 +
                        -i_9_)) / class37_sub7.anInt1905);

                    if (class37_sub7.aClass37_Sub3_Sub4_1896 != null) {
                        class37_sub7.aClass37_Sub3_Sub4_1896.method409(i_10_);
                    } else if (class37_sub7.anInt1910 >= 0) {
                        Class11 class11 = Class11.method88(Class37_Sub4.aClass15_Sub1_1862,
                                class37_sub7.anInt1910, 0);

                        if (class11 != null) {
                            Class37_Sub22_Sub1 class37_sub22_sub1 = class11.method86()
                                                                           .method1026(Class86.aClass30_1579);
                            Class37_Sub3_Sub4 class37_sub3_sub4 = (Class37_Sub3_Sub4.method392(class37_sub22_sub1,
                                    100, i_10_));
                            class37_sub3_sub4.method429(-1);
                            Class1.aClass37_Sub3_Sub2_59.method350(class37_sub3_sub4);

                            class37_sub7.aClass37_Sub3_Sub4_1896 = class37_sub3_sub4;
                        }
                    }

                    if (class37_sub7.aClass37_Sub3_Sub4_1917 == null) {
                        if ((class37_sub7.anIntArray1895 != null) &&
                                ((class37_sub7.anInt1918 -= i_6_) <= 0)) {
                            int i_11_ = (int) ((double) (class37_sub7.anIntArray1895).length * Math.random());
                            Class11 class11 = Class11.method88((Class37_Sub4.aClass15_Sub1_1862),
                                    (class37_sub7.anIntArray1895[i_11_]), 0);

                            if (class11 != null) {
                                Class37_Sub22_Sub1 class37_sub22_sub1 = class11.method86()
                                                                               .method1026(Class86.aClass30_1579);
                                Class37_Sub3_Sub4 class37_sub3_sub4 = (Class37_Sub3_Sub4.method392(class37_sub22_sub1,
                                        100, i_10_));
                                class37_sub3_sub4.method429(0);
                                Class1.aClass37_Sub3_Sub2_59.method350(class37_sub3_sub4);

                                class37_sub7.anInt1918 = (class37_sub7.anInt1908 +
                                    (int) (Math.random() * (double) (-(class37_sub7.anInt1908) +
                                    (class37_sub7.anInt1909))));

                                class37_sub7.aClass37_Sub3_Sub4_1917 = class37_sub3_sub4;
                            }
                        }
                    } else {
                        class37_sub7.aClass37_Sub3_Sub4_1917.method409(i_10_);

                        if (!class37_sub7.aClass37_Sub3_Sub4_1917.method323(105)) {
                            class37_sub7.aClass37_Sub3_Sub4_1917 = null;
                        }
                    }
                }
            }
        }

        if (i_7_ >= 15) {
            anInt384++;
        }
    }

    public void method193(int i, byte i_12_, int i_13_) {
        if (i_12_ >= 26) {
            int i_14_ = anIntArray356[i];
            anIntArray356[i] = anIntArray356[i_13_];
            anInt459++;
            anIntArray356[i_13_] = i_14_;
            i_14_ = anIntArray422[i];
            anIntArray422[i] = anIntArray422[i_13_];
            anIntArray422[i_13_] = i_14_;
        }
    }

    public Class37_Sub4_Sub9_Sub3 method194(boolean bool, int i) {
        Class27.aBoolean672 = false;

        int i_15_;

        if (bool) {
            i_15_ = anInt400;
        } else {
            i_15_ = anInt385;
        }

        anInt345++;

        if (i != 6021) {
            anInt405 = -126;
        }

        if ((i_15_ ^ 0xffffffff) == 0) {
            return null;
        }

        long l = (((long) anInt335 << 1937882088) +
            ((long) anInt449 << 118274660) +
            ((long) i_15_ + (((!aBoolean389) ? 0L : 1L) << -782842970) +
            ((aBoolean401 ? 1L : 0L) << 1805028711)));
        Class37_Sub4_Sub9_Sub3 class37_sub4_sub9_sub3 = ((Class37_Sub4_Sub9_Sub3) Class37_Sub9_Sub33.aClass65_3512.method1181((byte) 110,
                l));

        if (class37_sub4_sub9_sub3 != null) {
            return class37_sub4_sub9_sub3;
        }

        class37_sub4_sub9_sub3 = Class6.method61(i + -5912, i_15_, 0,
                Class80.aClass15_1507);

        if (class37_sub4_sub9_sub3 == null) {
            Class27.aBoolean672 = true;

            return null;
        }

        if (aBoolean389) {
            class37_sub4_sub9_sub3.method654();
        }

        if (aBoolean401) {
            class37_sub4_sub9_sub3.method650();
        }

        if ((anInt449 ^ 0xffffffff) < -1) {
            class37_sub4_sub9_sub3.method649(anInt449);
        }

        if (anInt449 >= 1) {
            class37_sub4_sub9_sub3.method629(1);
        }

        if ((anInt449 ^ 0xffffffff) <= -3) {
            class37_sub4_sub9_sub3.method629(16777215);
        }

        if ((anInt335 ^ 0xffffffff) != -1) {
            class37_sub4_sub9_sub3.method655(anInt335);
        }

        Class37_Sub9_Sub33.aClass65_3512.method1179(l, -4,
            class37_sub4_sub9_sub3);

        return class37_sub4_sub9_sub3;
    }

    public void method195(JString jstring, byte i, int i_16_) {
        if ((aJStringArray453 == null) ||
                ((i_16_ ^ 0xffffffff) <= (aJStringArray453.length ^ 0xffffffff))) {
            JString[] jstrings = new JString[i_16_ - -1];

            if (aJStringArray453 != null) {
                for (int i_17_ = 0;
                        ((aJStringArray453.length ^ 0xffffffff) < (i_17_ ^
                        0xffffffff)); i_17_++)
                    jstrings[i_17_] = aJStringArray453[i_17_];
            }

            aJStringArray453 = jstrings;
        }

        anInt388++;
        aJStringArray453[i_16_] = jstring;

        int i_18_ = 85 % ((49 - i) / 62);
    }

    public void method196(byte i, Stream stream) {
        anInt361++;
        aBoolean374 = false;
        anInt354 = stream.readByte(i ^ 0x79);
        anInt381 = stream.readByte(126);
        anInt376 = stream.readShort();
        anInt326 = anInt329 = stream.readSignedShort((byte) -67);
        anInt397 = anInt415 = stream.readSignedShort((byte) 102);
        anInt441 = stream.readShort();
        anInt353 = stream.readShort();
        anInt320 = stream.readByte(126);
        anInt394 = stream.readShort();

        if (anInt394 == 65535) {
            anInt394 = -1;
        } else {
            anInt394 = anInt394 + (~0xffff & anInt402);
        }

        anInt414 = stream.readShort();

        if (anInt414 == 65535) {
            anInt414 = -1;
        }

        int i_19_ = stream.readByte(i + 117);

        if ((i_19_ ^ 0xffffffff) < -1) {
            anIntArray451 = new int[i_19_];
            anIntArray370 = new int[i_19_];

            for (int i_20_ = 0; (i_19_ ^ 0xffffffff) < (i_20_ ^ 0xffffffff);
                    i_20_++) {
                anIntArray370[i_20_] = stream.readByte(121);
                anIntArray451[i_20_] = stream.readShort();
            }
        }

        int i_21_ = stream.readByte(127);

        if (i_21_ > 0) {
            anIntArrayArray434 = new int[i_21_][];

            for (int i_22_ = 0; (i_21_ ^ 0xffffffff) < (i_22_ ^ 0xffffffff);
                    i_22_++) {
                int i_23_ = stream.readShort();
                anIntArrayArray434[i_22_] = new int[i_23_];

                for (int i_24_ = 0; i_24_ < i_23_; i_24_++) {
                    anIntArrayArray434[i_22_][i_24_] = stream.readShort();

                    if ((anIntArrayArray434[i_22_][i_24_] ^ 0xffffffff) == -65536) {
                        anIntArrayArray434[i_22_][i_24_] = -1;
                    }
                }
            }
        }

        if ((anInt354 ^ 0xffffffff) == -1) {
            anInt348 = stream.readShort();

            aBoolean445 = (stream.readByte(i + 126) ^ 0xffffffff) == -2;
        }

        if ((anInt354 ^ 0xffffffff) == -2) {
            stream.readShort();
            stream.readByte(125);
        }

        if (anInt354 == 2) {
            anIntArray356 = new int[anInt353 * anInt441];
            anIntArray422 = new int[anInt353 * anInt441];

            int i_25_ = stream.readByte(121);

            if ((i_25_ ^ 0xffffffff) == -2) {
                anInt322 |= 0x10000000;
            }

            int i_26_ = stream.readByte(i ^ 0x75);

            if (i_26_ == 1) {
                anInt322 |= 0x40000000;
            }

            int i_27_ = stream.readByte(i + 125);

            if ((i_27_ ^ 0xffffffff) == -2) {
                anInt322 |= ~0x7fffffff;
            }

            int i_28_ = stream.readByte(i + 118);

            if (i_28_ == 1) {
                anInt322 |= 0x20000000;
            }

            anInt423 = stream.readByte(117);
            anInt426 = stream.readByte(117);
            anIntArray424 = new int[20];
            anIntArray448 = new int[20];
            anIntArray342 = new int[20];

            for (int i_29_ = 0; (i_29_ ^ 0xffffffff) > -21; i_29_++) {
                int i_30_ = stream.readByte(119);

                if (i_30_ != 1) {
                    anIntArray342[i_29_] = -1;
                } else {
                    anIntArray448[i_29_] = stream.readSignedShort((byte) -105);
                    anIntArray424[i_29_] = stream.readSignedShort((byte) 103);
                    anIntArray342[i_29_] = stream.readInt();
                }
            }

            aJStringArray383 = new JString[5];

            for (int i_31_ = 0; i_31_ < 5; i_31_++) {
                JString jstring = stream.readString();

                if (jstring.length((byte) 38) > 0) {
                    aJStringArray383[i_31_] = jstring;
                    anInt322 |= (1 << (i_31_ + 23));
                }
            }
        }

        if (anInt354 == 3) {
            aBoolean321 = (stream.readByte(i + 120) ^ 0xffffffff) == -2;
        }

        if ((anInt354 == 4) || ((anInt354 ^ 0xffffffff) == -2)) {
            anInt406 = stream.readByte(117);
            anInt379 = stream.readByte(122);
            anInt420 = stream.readByte(127);
            anInt338 = stream.readShort();

            if ((anInt338 ^ 0xffffffff) == -65536) {
                anInt338 = -1;
            }

            aBoolean403 = (stream.readByte(120) ^ 0xffffffff) == -2;
        }

        if ((anInt354 ^ 0xffffffff) == -5) {
            aJString_411 = stream.readString();
            aJString_377 = stream.readString();
        }

        if ((anInt354 == 1) || (anInt354 == 3) ||
                ((anInt354 ^ 0xffffffff) == -5)) {
            anInt442 = stream.readInt();
        }

        if ((anInt354 == 3) || (anInt354 == 4)) {
            anInt404 = stream.readInt();
            anInt396 = stream.readInt();
            anInt417 = stream.readInt();
        }

        if (anInt354 == 5) {
            anInt385 = stream.readInt();
            anInt400 = stream.readInt();
        }

        if (anInt354 == 6) {
            anInt408 = 1;
            anInt369 = stream.readShort();
            anInt325 = 1;

            if ((anInt369 ^ 0xffffffff) == -65536) {
                anInt369 = -1;
            }

            anInt457 = stream.readShort();

            if (anInt457 == 65535) {
                anInt457 = -1;
            }

            anInt390 = stream.readShort();

            if ((anInt390 ^ 0xffffffff) == -65536) {
                anInt390 = -1;
            }

            anInt419 = stream.readShort();

            if (anInt419 == 65535) {
                anInt419 = -1;
            }

            anInt387 = stream.readShort();
            anInt319 = stream.readShort();
            anInt405 = stream.readShort();
        }

        if (anInt354 == 7) {
            anIntArray356 = new int[anInt353 * anInt441];
            anIntArray422 = new int[anInt353 * anInt441];
            anInt406 = stream.readByte(118);
            anInt338 = stream.readShort();

            if (anInt338 == 65535) {
                anInt338 = -1;
            }

            aBoolean403 = (stream.readByte(116) ^ 0xffffffff) == -2;
            anInt442 = stream.readInt();
            anInt423 = stream.readSignedShort((byte) 103);
            anInt426 = stream.readSignedShort((byte) 107);

            int i_32_ = stream.readByte(123);

            if ((i_32_ ^ 0xffffffff) == -2) {
                anInt322 |= 0x40000000;
            }

            aJStringArray383 = new JString[5];

            for (int i_33_ = 0; i_33_ < 5; i_33_++) {
                JString jstring = stream.readString();

                if (jstring.length((byte) 38) > 0) {
                    aJStringArray383[i_33_] = jstring;
                    anInt322 |= (1 << (23 + i_33_));
                }
            }
        }

        if ((anInt354 ^ 0xffffffff) == -9) {
            aJString_411 = stream.readString();
        }

        if (i == 0) {
            if ((anInt381 == 2) || (anInt354 == 2)) {
                aJString_360 = stream.readString();
                aJString_436 = stream.readString();

                int i_34_ = stream.readShort() & 0x3f;
                anInt322 |= (i_34_ << -1376464757);
            }

            if ((anInt381 == 1) || (anInt381 == 4) ||
                    ((anInt381 ^ 0xffffffff) == -6) ||
                    ((anInt381 ^ 0xffffffff) == -7)) {
                aJString_421 = stream.readString();

                if (aJString_421.length((byte) 38) == 0) {
                    if ((anInt381 ^ 0xffffffff) == -2) {
                        aJString_421 = Class37_Sub9_Sub5.aJString_3005;
                    }

                    if (anInt381 == 4) {
                        aJString_421 = Class84.aJString_1527;
                    }

                    if ((anInt381 ^ 0xffffffff) == -6) {
                        aJString_421 = Class84.aJString_1527;
                    }

                    if (anInt381 == 6) {
                        aJString_421 = Class71.aJString_1369;
                    }
                }
            }

            if (((anInt381 ^ 0xffffffff) == -2) ||
                    ((anInt381 ^ 0xffffffff) == -5) || (anInt381 == 5)) {
                anInt322 |= 0x400000;
            }

            if ((anInt381 ^ 0xffffffff) == -7) {
                anInt322 |= 0x1;
            }
        }
    }

    public Object[] method197(Stream stream, int i) {
        anInt392++;

        int i_35_ = stream.readByte(125);

        if (i_35_ == 0) {
            return null;
        }

        if (i != 29002) {
            method192(-28, 22, 56, -40, -73);
        }

        Object[] objects = new Object[i_35_];

        for (int i_36_ = 0; (i_35_ ^ 0xffffffff) < (i_36_ ^ 0xffffffff);
                i_36_++) {
            int i_37_ = stream.readByte(124);

            if ((i_37_ ^ 0xffffffff) != -1) {
                if (i_37_ == 1) {
                    objects[i_36_] = stream.readString();
                }
            } else {
                objects[i_36_] = new Integer(stream.readInt());
            }
        }

        aBoolean452 = true;

        return objects;
    }

    public Class37_Sub4_Sub9_Sub3 method198(int i, byte i_38_) {
        anInt437++;
        Class27.aBoolean672 = false;

        if ((i < 0) ||
                ((anIntArray342.length ^ 0xffffffff) >= (i ^ 0xffffffff))) {
            return null;
        }

        if (i_38_ != -107) {
            method192(-49, 85, 59, 8, 22);
        }

        int i_39_ = anIntArray342[i];

        if (i_39_ == -1) {
            return null;
        }

        Class37_Sub4_Sub9_Sub3 class37_sub4_sub9_sub3 = ((Class37_Sub4_Sub9_Sub3) Class37_Sub9_Sub33.aClass65_3512.method1181((byte) 65,
                (long) i_39_));

        if (class37_sub4_sub9_sub3 != null) {
            return class37_sub4_sub9_sub3;
        }

        class37_sub4_sub9_sub3 = Class6.method61(127, i_39_, 0,
                Class80.aClass15_1507);

        if (class37_sub4_sub9_sub3 != null) {
            Class37_Sub9_Sub33.aClass65_3512.method1179((long) i_39_, -4,
                class37_sub4_sub9_sub3);
        } else {
            Class27.aBoolean672 = true;
        }

        return class37_sub4_sub9_sub3;
    }

    public int[] method199(int i, Stream stream) {
        anInt412++;

        int i_40_ = stream.readByte(120);

        if (i_40_ == 0) {
            return null;
        }

        int[] is = new int[i_40_];

        for (int i_41_ = i; i_41_ < i_40_; i_41_++)
            is[i_41_] = stream.readInt();

        return is;
    }

    public Class37_Sub4_Sub9_Sub2_Sub1 method200(int i) {
        if (i > -18) {
            method201(true, null);
        }

        anInt438++;
        Class27.aBoolean672 = false;

        if (anInt338 == -1) {
            return null;
        }

        Class37_Sub4_Sub9_Sub2_Sub1 class37_sub4_sub9_sub2_sub1 = ((Class37_Sub4_Sub9_Sub2_Sub1) Class37_Sub17.aClass65_2163.method1181((byte) 116,
                (long) anInt338));

        if (class37_sub4_sub9_sub2_sub1 != null) {
            return class37_sub4_sub9_sub2_sub1;
        }

        class37_sub4_sub9_sub2_sub1 = Class37_Sub9_Sub3.method770(Class80.aClass15_1507,
                0, (byte) 119, Stream.aClass15_2025, anInt338);

        if (class37_sub4_sub9_sub2_sub1 == null) {
            Class27.aBoolean672 = true;
        } else {
            Class37_Sub17.aClass65_2163.method1179((long) anInt338, -4,
                class37_sub4_sub9_sub2_sub1);
        }

        return class37_sub4_sub9_sub2_sub1;
    }

    public void method201(boolean bool, Stream stream) {
        stream.readByte(125);
        anInt373++;
        aBoolean374 = true;
        anInt354 = stream.readByte(126);
        anInt376 = stream.readShort();
        anInt326 = anInt329 = stream.readSignedShort((byte) -41);
        anInt397 = anInt415 = stream.readSignedShort((byte) 120);
        anInt441 = stream.readShort();

        if ((anInt354 ^ 0xffffffff) != -10) {
            anInt353 = stream.readShort();
        } else {
            anInt353 = stream.readSignedShort((byte) 102);
        }

        anInt394 = stream.readShort();

        if ((anInt394 ^ 0xffffffff) != -65536) {
            anInt394 = (anInt402 & ~0xffff) + anInt394;
        } else {
            anInt394 = -1;
        }

        aBoolean445 = stream.readByte(117) == 1;

        if (anInt354 == 0) {
            anInt324 = stream.readShort();
            anInt348 = stream.readShort();
        }

        if ((anInt354 ^ 0xffffffff) == -6) {
            anInt385 = stream.readInt();
            anInt398 = stream.readShort();
            aBoolean336 = stream.readByte(122) == 1;
            anInt320 = stream.readByte(127);
            anInt449 = stream.readByte(125);
            anInt335 = stream.readInt();
            aBoolean389 = stream.readByte(120) == 1;
            aBoolean401 = stream.readByte(117) == 1;
        }

        if ((anInt354 ^ 0xffffffff) == -7) {
            anInt408 = 1;
            anInt369 = stream.readShort();

            if (anInt369 == 65535) {
                anInt369 = -1;
            }

            anInt380 = stream.readSignedShort((byte) 127);
            anInt431 = stream.readSignedShort((byte) -28);
            anInt319 = stream.readShort();
            anInt405 = stream.readShort();
            anInt359 = stream.readShort();
            anInt387 = stream.readShort();
            anInt390 = stream.readShort();

            if (anInt390 == 65535) {
                anInt390 = -1;
            }

            aBoolean364 = stream.readByte(120) == 1;
        }

        if ((anInt354 ^ 0xffffffff) == -5) {
            anInt338 = stream.readShort();

            if (anInt338 == 65535) {
                anInt338 = -1;
            }

            aJString_411 = stream.readString();
            anInt420 = stream.readByte(124);
            anInt406 = stream.readByte(116);
            anInt379 = stream.readByte(126);
            aBoolean403 = stream.readByte(126) == 1;
            anInt442 = stream.readInt();
        }

        if ((anInt354 ^ 0xffffffff) == -4) {
            anInt442 = stream.readInt();
            aBoolean321 = (stream.readByte(124) ^ 0xffffffff) == -2;
            anInt320 = stream.readByte(123);
        }

        if ((anInt354 ^ 0xffffffff) == -10) {
            anInt337 = stream.readByte(118);
            anInt442 = stream.readInt();
        }

        anInt322 = stream.read3Bytes(-26256544);
        aJString_391 = stream.readString();

        int i = stream.readByte(122);

        if ((i ^ 0xffffffff) < -1) {
            aJStringArray453 = new JString[i];

            for (int i_42_ = 0; i_42_ < i; i_42_++)
                aJStringArray453[i_42_] = stream.readString();
        }

        anInt378 = stream.readByte(119);
        anInt350 = stream.readByte(122);
        aBoolean372 = stream.readByte(117) == 1;
        aJString_360 = stream.readString();
        anObjectArray433 = method197(stream, 29002);
        anObjectArray429 = method197(stream, 29002);
        anObjectArray355 = method197(stream, 29002);
        anObjectArray358 = method197(stream, 29002);
        anObjectArray386 = method197(stream, 29002);
        anObjectArray347 = method197(stream, 29002);
        anObjectArray346 = method197(stream, 29002);
        anObjectArray416 = method197(stream, 29002);
        anObjectArray318 = method197(stream, 29002);
        anObjectArray363 = method197(stream, 29002);
        anObjectArray366 = method197(stream, 29002);
        anObjectArray430 = method197(stream, 29002);
        anObjectArray393 = method197(stream, 29002);
        anObjectArray418 = method197(stream, 29002);
        anObjectArray425 = method197(stream, 29002);
        anObjectArray409 = method197(stream, 29002);
        anObjectArray456 = method197(stream, 29002);
        anObjectArray455 = method197(stream, 29002);
        anIntArray444 = method199(0, stream);

        if (bool != false) {
            method193(32, (byte) -42, -77);
        }

        anIntArray331 = method199(0, stream);
        anIntArray375 = method199(0, stream);
    }
}
